var path = require('path');

module.exports = {
    build: {
        env: {
            NODE_ENV: JSON.stringify('production')
        },
        assetsRoot: path.resolve(__dirname, 'dist'),
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        publicPath: '',
        productionSourceMap: false,
        productionGzip: true,
        productionGzipExtensions: ['js', 'css']
    },
    dev: {
        env: {
            NODE_ENV: JSON.stringify('development')
        },
        port: 8183,
        assetsSubDirectory: 'static',
        assetsPublicPath: '/',
        proxyTable: {
            '/v1': {
                target: 'http://192.168.199.163:8081/v1',
                // target: 'http://192.168.8.64:8086/v1',
                changeOrigin: true,
                pathRewrite: function (path) {
                    return path.replace('/v1', '');
                }
            }
        },
        cssSourceMap: false
    }
}